
function initialize() {

    //Map parametrs
    var mapOptions = {
        zoom: 14,
        center: new google.maps.LatLng(41.143, -73.341),
        mapTypeId: google.maps.MapTypeId.ROADMAP,

        mapTypeControl: false,
        mapTypeControlOptions: {
            style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
            position: google.maps.ControlPosition.BOTTOM_CENTER
        },
        panControl: false,
        panControlOptions: {
            position: google.maps.ControlPosition.TOP_RIGHT
        },
        zoomControl: true,
        zoomControlOptions: {
            style: google.maps.ZoomControlStyle.LARGE,
            position: google.maps.ControlPosition.TOP_RIGHT
        },
        scaleControl: false,
        scaleControlOptions: {
            position: google.maps.ControlPosition.TOP_LEFT
        },
        streetViewControl: true,
        streetViewControlOptions: {
            position: google.maps.ControlPosition.LEFT_TOP
        }
    }

    //map
    var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);

    //positions
    var point1 = new google.maps.LatLng(41.154, -73.328);
    var point2 = new google.maps.LatLng(41.148, -73.345);
    var point3 = new google.maps.LatLng(41.135, -73.324);
    var point4 = new google.maps.LatLng(41.158, -73.349);
    var point5 = new google.maps.LatLng(41.149, -73.356);

    //icons
    var cook = 'img/icon/01.png';
    var sport = 'img/icon/02.png';
    var game = 'img/icon/03.png';
    var eco = 'img/icon/04.png';
    var shop = 'img/icon/05.png';
    
    //markers
    var marker1 = new google.maps.Marker({
        position: point1,
        map: map,
        category: cook,
        icon: cook,
        title: "point1"
    });
    
    var marker1Info = {text:"Descripción del pedido"};
    
    var marker2 = new google.maps.Marker({
        position: point2,
        map: map,
        category: sport,
        icon: sport,
        title: "Uluru (Ayers Rock)"
    });
    
    var marker3 = new google.maps.Marker({
        position: point3,
        map: map,
        category: game,
        icon: game,
        title: "Uluru (Ayers Rock)"
    });
    
    var marker4 = new google.maps.Marker({
        position: point4,
        map: map,
        category: eco,
        icon: eco,
        title: "Uluru (Ayers Rock)"
    });

    var marker5 = new google.maps.Marker({
        position: point5,
        map: map,
        category: shop,
        icon: shop,
        title: "Uluru (Ayers Rock)"
    });
    
    var showInfo =  function(obj1){
    	$("#my_modal div.modal-body").text(this.text)
    	$('#my_modal').modal({keyboard:"true"})
    }
    
    geo0 =  google.maps.event.addListener(marker1, 'click', showInfo.bind(marker1Info));
    geo1 = google.maps.event.addListener(marker2, 'click', showInfo.bind(marker1Info));
    geo2 =  google.maps.event.addListener(marker3, 'click', showInfo.bind(marker1Info));
    geo3 =  google.maps.event.addListener(marker4, 'click', showInfo.bind(marker1Info));
    geo4 = google.maps.event.addListener(marker5, 'click', showInfo.bind(marker1Info));
}